<template>
	<div class="fationImg">
		<imgSectionTitle :title="contentList[0].channelName"></imgSectionTitle>

		<div class="imgContent">
			<div class="img_content_left">
				<div class='fashion_big_img'>
					<a class="block_a" :href="Path + contentList[0]?.url" target="_blank">
						<div class="fationImg_img_box_left_top img_box"><img class="fationImg_img_left_top_pic img_pic" :src="getImgPath(contentList[0]?.headImag || '')" /></div>
						<p class="fationImg_img_left_top_p p_descripte">{{ contentList[0]?.title }}</p>
					</a>
				</div>
				<div class="fationImg_box_left_bottom">
					<div class='fationImg_box_left_bottom_left' v-for="item in [contentList[1], contentList[2]]">
						<a class="block_a" :href="Path + item.url" target="_blank">
							<div class="fationImg_img_box_left_bottom img_box"><img class="fationImg_img_left_bottom img_pic" :src="getImgPath(item?.headImag || '')" /></div>
							<p class="fationImg_img_left_bottom_p p_descripte">{{ item?.title }}</p>
						</a>
					</div>
				</div>
			</div>
			<div class="img_content_right">
				<div>
					<a class="block_a" :href="Path + contentList[3]?.url" target="_blank">
						<div class="fationImg_img_box_right_top img_box"><img class="fationImg_img_right_top_pic pic_width img_pic" :src="getImgPath(contentList[3]?.headImag || '')" /></div>
						<p class="fationImg_img_right_top_p p_descripte">{{ contentList[3]?.title }}</p>
					</a>
				</div>
				<div class="fationImg_box_right_bottom">
					<div>
						<a class="block_a" :href="Path + contentList[4]?.url" target="_blank">
							<div class="fationImg_img_box_right_bottom img_box"><img class="fationImg_img_right_bottom img_pic" :src="getImgPath(contentList[4]?.headImag || '')" /></div>
							<p class="fationImg_img_right_bottom_p p_descripte">{{ contentList[4]?.title }}</p>
						</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
import { defineAsyncComponent } from 'vue';
// import imgSectionTitle from './imgSectionTitle.vue'
export default {
	props: {
		contentList: {
			type: Array,
			default: []
		}
	},
	components: {
		imgSectionTitle: defineAsyncComponent(() => import(rootPath + '/src/components/imgChannel/imgSectionTitle.vue'))
	},
	data() {
		return {
			title: '时尚',
			Path: getRootPath(),
		};
	},

	mounted() {
		this.$nextTick(() => {});
	},
	methods: {
		getImgPath(url){
			return imgPath(url);
		},
	}
};
</script>

<style scoped="scoped">
.fationImg {
	width: 1200px;
}
.fationImg .imgContent {
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.fationImg .imgContent .img_content_left {
	width: 780px;
	display: flex;
	flex-direction: column;
}
.fationImg .imgContent .img_content_left .fationImg_img_box_left_top {
	width: 780px;
	height: 436px;
}
.fationImg .imgContent .img_content_left .fationImg_img_left_top_p {
	margin-top: -80px;
	width: 557px;
	height: 80px;
	background: #ffffff;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	opacity: 0.85;
	margin-left: 112px;
	font-size: 24px;
	font-family: PingFang SC-Medium, PingFang SC;
	font-weight: 500;
	color: #333333;
	padding: 24px;
	box-sizing: border-box;
	margin-bottom: 24px;
	letter-spacing: 1;
	line-height: 30px;
}
.fationImg .imgContent .img_content_left .fationImg_img_left_top_p:hover{
	color:#FF3333;
}
.fationImg .imgContent .img_content_left .fationImg_box_left_bottom {
	display: flex;
	justify-content: space-between;
}
.fationImg .imgContent .img_content_left .fationImg_box_left_bottom .fationImg_img_box_left_bottom {
	width: 378px;
	height: 213px;
}
.fationImg .imgContent .img_content_left .fationImg_img_left_bottom:hover{
	transform: scale(1.1);
}
.fationImg_box_left_bottom_left{
	box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.06);
}
.fationImg .imgContent .img_content_left .fationImg_img_left_bottom_P {
	padding: 24px;
	font-size: 18px;
	font-family: PingFang SC-Medium, PingFang SC;
	font-weight: 500;
	color: #333333;
	line-height: 26px;
	text-align: center;
	width: 378px;
	box-sizing: border-box;
	
}

.fationImg .imgContent .img_content_left .fationImg_img_left_bottom_P:hover{
	color: #FF3333;
}
.fationImg_box_left_bottom_left:hover{
	box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);
}
.fationImg .imgContent .img_content_right {
	width: 396px;
	display: flex;
	flex-direction: column;
}
.fationImg .imgContent .img_content_right .fationImg_img_box_right_top {
	width: 100%;
	height: 370px;
}
.fationImg .imgContent .img_content_right .fationImg_img_right_top_p {
	padding: 24px;
	font-size: 18px;
	font-family: PingFang SC-Medium, PingFang SC;
	font-weight: 500;
	color: #333333;
	line-height: 26px;
	text-align: center;
	box-sizing: border-box;
	background: #f8f8f8;
}
.fationImg .imgContent .img_content_right .fationImg_img_right_top_p:nth-of-type(1){
	margin-bottom: 24px;
}
.fationImg .imgContent .img_content_right img:hover{
	transform: scale(1.1);
}
.fationImg .imgContent .img_content_right p:hover{
	color:#FF3333;
}
.fationImg .imgContent .img_content_right .fationImg_img_box_right_bottom {
	width: 396px;
	height: 223px;
}
.fationImg .imgContent .img_content_right .fationImg_img_right_bottom_p {
	width: 348px;
	height: 100px;
	background: #ffffff;
	border-radius: 0px;
	margin-left: 24px;
	padding: 24px;
	font-size: 18px;
	font-family: PingFang SC-Medium, PingFang SC;
	font-weight: 500;
	color: #333333;
	line-height: 26px;
	box-sizing: border-box;
	margin-top: -42px;
	position: relative;
	z-index: 1;
}
.pic_width {
	width: 100%;
}
.fashion_big_img .fationImg_img_left_top_pic{
	width: 780px;
	height: 436px;
}
.fashion_big_img .fationImg_img_left_top_pic:hover{
	transform: scale(1.1);
}

</style>
